import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'my_get_user_follow_count_response.freezed.dart';
part 'my_get_user_follow_count_response.g.dart';

@freezed
class MyGetUserFollowCountResponse with _$MyGetUserFollowCountResponse {
  const factory MyGetUserFollowCountResponse({
    @JsonKey(name: "c") required int c,
    @JsonKey(name: "m") required String m,
    @JsonKey(name: "d") required D d,
  }) = _MyGetUserFollowCountResponse;

  factory MyGetUserFollowCountResponse.fromJson(Map<String, dynamic> json) =>
      _$MyGetUserFollowCountResponseFromJson(json);
}

@freezed
class D with _$D {
  const factory D({
    @JsonKey(name: "followCount") required int followCount,
    @JsonKey(name: "fansCount") required int fansCount,
    @JsonKey(name: "is_follow") required int isFollow,
    @JsonKey(name: "is_followed") required int isFollowed,
  }) = _D;

  factory D.fromJson(Map<String, dynamic> json) => _$DFromJson(json);
}
